package com.xishu.entity.order;

import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * 订单与支付类型的映射
 */
@Entity(name = "order_pay_type_mapping")
@Table(indexes = {@Index(columnList = "createTime")})
public class OrderPayTypeMapping extends AbstractEntity {

    @ApiModelProperty(value = "支付类型,做报表统计用,1微信，2支付宝，3master Card, 4 visa,5现金")
    private Long payType;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "分店的ID")
    private Long shopId;

    @ApiModelProperty(value = "金额")
    private Double cash;

    @ApiModelProperty(value = "类型")
    private Long orderType;

    @ApiModelProperty(value = "父订单的ID,如果本身是父订单，那么订单号也是父订单号")
    private Long parentOrderId;

    @Column(length = 30)
    @ApiModelProperty(value = "支付类型中文")
    private String payTypeName_zh;

    @Column(length = 30)
    @ApiModelProperty(value = "支付类型英文")
    private String payTypeName_en;

    public String getPayTypeName_zh() {
        return payTypeName_zh;
    }

    public void setPayTypeName_zh(String payTypeName_zh) {
        this.payTypeName_zh = payTypeName_zh;
    }

    public String getPayTypeName_en() {
        return payTypeName_en;
    }

    public void setPayTypeName_en(String payTypeName_en) {
        this.payTypeName_en = payTypeName_en;
    }

    public Long getParentOrderId() {
        return parentOrderId;
    }

    public void setParentOrderId(Long parentOrderId) {
        this.parentOrderId = parentOrderId;
    }

    public Long getOrderType() {
        return orderType;
    }

    public void setOrderType(Long orderType) {
        this.orderType = orderType;
    }

    public Double getCash() {
        return cash;
    }

    public void setCash(Double cash) {
        this.cash = cash;
    }

    public Long getPayType() {
        return payType;
    }

    public void setPayType(Long payType) {
        this.payType = payType;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }
}
